﻿using System.Collections.Generic;
using System.Linq;

namespace Inscriptionem.Areas.Inscriptionem.Models.Views
{
    public class PostCollectionViewModel
    {
        public IEnumerable<ORM.Post> Posts { get; protected set; }

        public PostCollectionViewModel()
        {
            Posts = new ORM.DB().Posts.OrderByDescending(p => p.ID);
        }

        public int Page { get; set; }
    }
}